#pragma once

#include <QWidget>
#include <QComboBox>
#include <QCheckBox>
#include <QDoubleSpinBox>
#include <QSlider>
#include "particledefine.h"

namespace ParticleEditor
{
	class ParticleBaseWidget:public QWidget
	{
		Q_OBJECT
	public:
		ParticleBaseWidget(QWidget* parent = NULL,Qt::WindowFlags flags = NULL);
		~ParticleBaseWidget();

		void initParticleBase(ParticleSystemLayer ps);
		void copyLayer(ParticleSystemLayer psl,ParticleSystemLayer newpsl);
	private:
		QComboBox*											_alignmentBox;
		QComboBox*											_shapeBox;
		QCheckBox*											_particleScaleReferenceFrameBox;
		//QCheckBox*										_lightingBox;
		QDoubleSpinBox*										_lifeSpinBox;
		//QSlider*											_lifeSlider;
		//QDoubleSpinBox*										_radiusSpinBox;
		//QSlider*											_radiusSlider;
		QDoubleSpinBox*										_massSpinBox;
		//QSlider*											_massSlider;
		QDoubleSpinBox*										_sizeFromSpinBox;
		//QSlider*											_sizeFromSlider;
		QDoubleSpinBox*										_sizeToSpinBox;
		//QSlider*											_sizeToSlider;
		ParticleSystemLayer									_particleSystemLayer;
	private slots:
		void slotsAlignmentBox(int);
		void slotsShapeBox(int);
		void slotsLifeSpinBox(double);
		void slotsScaleReferenceFrameChanged(int);
		void slotsMassSpinBox(double);
		void slotsSizeFromSpinBox(double);
		void slotsSizeToSpinBox(double);
	};
}